package com.shinbada.modules.competitor.mapper;

import com.shinbada.modules.competitor.entity.CompetitorProductDataItem;
import com.shinbada.modules.competitor.entity.DTO.ParamModelSelectionDTO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import com.shinbada.core.persistence.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import com.shinbada.modules.competitor.entity.CompetitorProductDataItemValue;

import java.util.List;

/**
 * 数据项值维护MAPPER接口
 * @author initcap
 * @version 2021-08-04
 */
@Mapper
@Repository
public interface CompetitorProductDataItemValueMapper extends BaseMapper<CompetitorProductDataItemValue> {
    /**
     * SPD/ISCB产品根据数据项类型名称获取数据集
     * @param competitorProductDataItem
     * @return
     */
    List<CompetitorProductDataItemValue> getProductValueByNameAndType(CompetitorProductDataItem competitorProductDataItem);

    /**
     * 根据数据项id和名称获取 产品ids
     * @param paramModelSelectionDTOList
     * @return
     */
    String[] selectProductIdsByItemIdAndValue(@Param("paramModelSelectionDTOList") List<ParamModelSelectionDTO> paramModelSelectionDTOList);
}
